package CoreNRMSystem;

/**
 * Generated from IDL union "PercentOfRouteType".
 *
 * @author JacORB IDL compiler V 2.3.0, 17-Feb-2007
 * @version generated at 2013-5-20 22:07:19
 */

public final class PercentOfRouteType
	implements org.omg.CORBA.portable.IDLEntity
{
	private CoreNRMSystem.SubRouteChoiceTypeType discriminator;
	private float percentOfRoute;

	public PercentOfRouteType ()
	{
	}

	public CoreNRMSystem.SubRouteChoiceTypeType discriminator ()
	{
		return discriminator;
	}

	public float percentOfRoute ()
	{
		if (discriminator != CoreNRMSystem.SubRouteChoiceTypeType.PercentChoice)
			throw new org.omg.CORBA.BAD_OPERATION();
		return percentOfRoute;
	}

	public void percentOfRoute (float _x)
	{
		discriminator = CoreNRMSystem.SubRouteChoiceTypeType.PercentChoice;
		percentOfRoute = _x;
	}

	public void __default ()
	{
		discriminator = CoreNRMSystem.SubRouteChoiceTypeType.OrderChoice;
	}
	public void __default (CoreNRMSystem.SubRouteChoiceTypeType _discriminator)
	{
		discriminator = _discriminator;
	}
}
